package com.hh.entity.dto.comment;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hh.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName comments
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "comments")
@Data
public class CommentsQueryRequest extends PageRequest implements Serializable {

    /**
     * 评论目标ID（文章/视频等）
     */
    @TableField(value = "targetId")
    private String targetId;

    /**
     * 目标类型（1=文章, 2=视频等）
     */
    @TableField(value = "targetType")
    private Integer targetType;

    /**
     *
     */
    @TableField(value = "replyCount")
    private Integer replyCount;

    /**
     *
     */
    @TableField(value = "status")
    private Integer status;

    /**
     *
     */
    @TableField(value = "createdTime")
    private Date createdTime;

    /**
     *
     */
    @TableField(value = "updatedTime")
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}